package com.big.merchan.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.big.merchan.mapper.MerchandiseSpikeMapper;
import com.big.merchan.service.MerchandiseSpikeService;
import com.big.model.model.merchandise.MerchandiseDetail;
import com.big.model.model.merchandise.MerchandiseInfo;
import com.big.model.model.merchandise.MerchandiseSpike;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class MerchandiseSpikeServiceImpl extends ServiceImpl<MerchandiseSpikeMapper, MerchandiseSpike> implements MerchandiseSpikeService {


    @Override
    public MerchandiseSpike MerchandiseSpikeInfo(String mId) {
        QueryWrapper<MerchandiseSpike>queryWrap=new QueryWrapper<>();
        queryWrap.eq("id",mId);
        MerchandiseSpike merchandiseSpike = baseMapper.selectOne(queryWrap);
        return merchandiseSpike;
    }
}
